/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sda.levelup.frames;

import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;
import javax.swing.WindowConstants;

/**
 *
 * @author user
 */
public class MyFrame extends JFrame
{ 

    public MyFrame()
    {
        setTitle("IP");
        setupFrame();
        fillFrame();
    }
    
     private void setupFrame(){
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        Toolkit t = Toolkit.getDefaultToolkit();
        Dimension d = t.getScreenSize();
        int coordX = d.width / 2;
        int coordY = d.height / 2;
        setBounds(coordX, coordY, 200, 200);
         
     }
     private void fillFrame(){
         PaintIP p = new PaintIP();
         add(p);
     }
    
}
